package model

import (
	"time"
)

type AccumulativeOrder struct{
	AccumulativeOrderId int `xorm:"pk autoincr"`
	RuleCustomersTypeId int
	AmountMoney int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (mo *AccumulativeOrder)QueryAccumulativeOrder(rctId int) *AccumulativeOrder{
	var aov *AccumulativeOrder
	_, err := x.Where("rule_customers_type_id = ?", rctId).Get(aov)
	if err != nil{
		return nil
	}
	return aov
}